package com.editso.haier.util;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public final class Pair<K, V> {
    private K key;
    private V value;

    public V get(){
        return value;
    }

    public static <K, V> Pair<K, V> from(K key, V value){
        return new Pair<K, V>(key, value);
    }
}
